-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[RuntimeAsync] Enable async feature/tests #119420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Tagging subscribers to this area: @mangod9 |
| <PropertyGroup> | ||
| <RunAnalyzers>true</RunAnalyzers> | ||
| <NoWarn>$(NoWarn);xUnit1013;CS1998</NoWarn> | ||
| <NoWarn>$(NoWarn);xUnit1013;CS1998;SYSLIB5007</NoWarn> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tommcdon The SYSLIB5007nowarn is to suppress warnings about using experimental API. CompilerServices/AsyncHelpers where the Await helpers live is still marked as experimental.
It will not be experimental in at some point, hopefully soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also note the <Features>$(Features);runtime-async=on</Features> below - that enables the new style codegen for async/await on the Roslyn side.
Right now we enable this only for tests under tests/async, if we build that at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nowarn for SYSLIB5007 should no longer be needed
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
src/tests/async/struct/struct.cs
Outdated
| } | ||
|
|
||
| // Roslyn NYI - async in structs. Remove opt-out once supported. | ||
| [System.Runtime.CompilerServices.RuntimeAsyncMethodGeneration(false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer needed either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The NYI has been implemented.
Mostly to check the current state of build/tests, although maybe we could merge this ? . . .
(perhaps not yet, while there is still some backporting to v10)